package com.ruoyi.refundincome.mapper;

import java.util.List;
import com.ruoyi.refundincome.domain.HouseContrctRefundIncome;
import org.apache.ibatis.annotations.Param;

/**
 * 退单记录Mapper接口
 * 
 * @author hct
 * @date 2022-03-01
 */
public interface HouseContrctRefundIncomeMapper 
{
    /**
     * 查询退单记录
     * 
     * @param id 退单记录主键
     * @return 退单记录
     */
    public HouseContrctRefundIncome selectHouseContrctRefundIncomeById(Long id);

    /**
     * 查询退单记录列表
     * 
     * @param houseContrctRefundIncome 退单记录
     * @return 退单记录集合
     */
    public List<HouseContrctRefundIncome> selectHouseContrctRefundIncomeList(HouseContrctRefundIncome houseContrctRefundIncome);

    /**
     * 新增退单记录
     * 
     * @param houseContrctRefundIncome 退单记录
     * @return 结果
     */
    public int insertHouseContrctRefundIncome(HouseContrctRefundIncome houseContrctRefundIncome);

    /**
     * 修改退单记录
     * 
     * @param houseContrctRefundIncome 退单记录
     * @return 结果
     */
    public int updateHouseContrctRefundIncome(HouseContrctRefundIncome houseContrctRefundIncome);

    /**
     * 删除退单记录
     * 
     * @param id 退单记录主键
     * @return 结果
     */
    public int deleteHouseContrctRefundIncomeById(Long id);

    /**
     * 批量删除退单记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHouseContrctRefundIncomeByIds(Long[] ids);


    public HouseContrctRefundIncome getLastId();

    /** 批量添加 */
    public int insertRfIncomeList(@Param("rfincomes") List<HouseContrctRefundIncome> rfincomes);
}
